//
//  ViewController.m
//  单例模式(模式化生成)
//
//  Created by hyl on 16/7/18.
//  Copyright © 2016年 hyl. All rights reserved.
//

#import "ViewController.h"
#import "HYLPerson.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    HYLPerson *p1=[HYLPerson sharedPerson];
    HYLPerson *p2=[HYLPerson sharedPerson];
    HYLPerson *p3=[HYLPerson sharedPerson];
    NSLog(@"%@ %@ %@",p1,p2,p3);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
